#include<iostream>
using namespace std;
void test()
{
    float a;
    cin >> a;
    int b = a;
    float c = a - b;
    if (c >= 0.5)
        cout << b + 1;
    else
        cout << b;
}

int main()
{
    test();
    return 0;
}